package cn.thr.ymcc.feign;

import cn.thr.ymcc.domain.Login;
import cn.thr.ymcc.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-uaa")
@Component
public interface LoginFeign {
    @PostMapping("/login/save")
    JsonResult uaaFeign(@RequestBody Login login);

    //这是角色保存
    @PostMapping("/login/saveRole")
    void RoleFeign(@RequestBody Long loginId);
}
